package com.heima.user.controller;

import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.LoginDto;
import com.heima.user.service.IApUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/login")
public class LoginController {


    @Autowired
    private IApUserService apUserService;

    @PostMapping(value = "/login_auth", name = "app端登录-功能实现")
    public ResponseResult login(@RequestBody LoginDto dto) {

        return apUserService.login (dto);
    }



}
